WPGraphQL\Data\Connection\AbstractConnectionResolver C

Total Complexity 109
Dependencies 9
Dependents 0
Total lines 1,233
Lines of code 350
Logical lines of code 176
Comment lines 716
Methods 50
Properties 17

Methods 50

Method Rating Maintainability Complexity Lines of code
get_amount_requested()
A
52 11 22
apply_cursors_to_ids()
S
55 6 20
get_loader_name()
S
56 5 19
get_edges()
S
54 4 23
get_connection()
S
53 4 22
execute_and_get_ids()
S
59 4 14
get_query_amount()
S
56 3 17
get_ids_for_nodes()
S
64 4 9
get_start_cursor()
S
73 4 4
has_previous_page()
S
63 4 10
has_next_page()
S
63 4 10
get_nodes()
S
63 3 11
pre_should_execute()
S
68 3 7
get_end_cursor()
S
73 3 4
get_offset_for_cursor()
S
67 3 7
__construct()
S
59 2 14
get_loader()
S
69 2 7
get_page_info()
S
68 2 7
get_after_offset()
S
71 2 6
get_should_execute()
S
72 2 6
get_before_offset()
S
71 2 6
is_valid_model()
S
78 2 3
get_offset()
S
68 2 6
get_array_index_for_offset()
S
70 2 6
getArgs()
S
75 1 4
setQueryArg()
S
74 1 4
prepare_page_info()
S
67 1 8
get_cursor_for_node()
S
79 1 3
getSource()
S
75 1 4
getContext()
S
75 1 4
getInfo()
S
75 1 4
getShouldExecute()
S
75 1 4
get_pre_should_execute()
S
74 1 4
get_node_by_id()
S
80 1 3
should_execute()
S
82 1 3
get_args()
S
82 1 3
get_query_args()
S
100 1 0
get_query()
S
100 1 0
max_query_amount()
S
82 1 3
is_valid_offset()
S
100 1 0
get_ids_from_query()
S
68 1 8
get_source()
S
82 1 3
loader_name()
S
82 1 3
get_context()
S
82 1 3
get_info()
S
82 1 3
get_unfiltered_args()
S
82 1 3
get_ids()
S
76 1 4
set_query_arg()
S
76 1 4
one_to_one()
S
77 1 4
getLoader()
S
75 1 4